<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/11/9
 * Time: 17:47
 */

namespace app\mall\model;


use think\Model;

class Merchant extends Model
{


    /**
     * 根据条件查询一条数据
     * @param $where
     * @param string $field
     * @return array|Model|null
     * @throws
     */
    public static function getMerchantWhere($where, $field = "*")
    {
        return self::field($field)->where($where)->find();

    }
}